package com.orilife.followfriends;

import com.example.orllife.CoolMakingApplication;
import com.example.orllife.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;

public class AddOtherFriends extends Activity {
	TextView wayTv;
	Button backBt;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.addotherfriendslayout);
		CoolMakingApplication.getInstance().addActivity(this);  
		wayTv = (TextView)findViewById(R.id.addfriendsway);
		backBt = (Button)findViewById(R.id.backbt);
		Intent intent = getIntent();
		String way = intent.getStringExtra("way");
		wayTv.setText(way);
		backBt.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				AddOtherFriends.this.finish();
			}
		});
		
		
	}
	
	@Override
	public void finish() {
		// TODO Auto-generated method stub
		super.finish();
		CoolMakingApplication.getInstance().removeActivity(this);  
	}

}
